package com.example.medicalretrieval.config;

/*import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.transaction.PlatformTransactionManager;

@Configuration
@EnableJpaRepositories(basePackages = {"com.example.repositories"})
public class JpaConfig {
*//*    @Bean
    public EntityManagerFactory entityManagerFactory() {
        //配置实体管理器工厂，这里可以使用 Hibernate 等 ORM 框架
        return Persistence.createEntityManagerFactory("persistence-unit");
    }

    @Bean
    public PlatformTransactionManager transactionManager() {
        //配置事务管理器
        JpaTransactionManager transactionManager = new JpaTransactionManager();
        transactionManager.setEntityManagerFactory(entityManagerFactory());
        return transactionManager;
    }*//*
}*/
